package runtime;
import org.antlr.runtime.*;
import org.antlr.runtime.tree.*;
//import org.antlr.stringtemplate.*;
import output.*;

public class Main {
  public static void main(String[] args) throws Exception {
    String src = "program p; begin break; end.";
    PascalTo3addrLexer lexer = new PascalTo3addrLexer(new ANTLRStringStream(src));
    PascalTo3addrParser parser = new PascalTo3addrParser(new CommonTokenStream(lexer));
    //CommonTree tree = (CommonTree)parser.parse().getTree();
    //System.out.println(tree);    
    
//    DOTTreeGenerator gen = new DOTTreeGenerator();
//    StringTemplate st = gen.toDOT(tree);
//    System.out.println(st);
  }
}